Callback

abstract class Callback(source)

Interface that allows the application to listen to animation events for windows that cause insets.

Constructors

Link copied to clipboard
constructor(dispatchMode: Int)
Creates a new WindowInsetsAnimationCompat callback with the given dispatch mode.

Types

Link copied to clipboard

Properties

Link copied to clipboard
Return value for getDispatchMode: Dispatching of animation events should continue in the view hierarchy.
Link copied to clipboard
Return value for getDispatchMode: Dispatching of animation events should stop at this level in the view hierarchy, and no animation events should be dispatch to the subtree of the view hierarchy.

Functions

Link copied to clipboard
Retrieves the dispatch mode of this listener.
Link copied to clipboard
open fun onEnd(@NonNull animation: @NonNull WindowInsetsAnimationCompat)
Called when an insets animation has ended.
Link copied to clipboard
open fun onPrepare(@NonNull animation: @NonNull WindowInsetsAnimationCompat)
Called when an insets animation is about to start and before the views have been re-laid out due to an animation.
Link copied to clipboard
@NonNull
abstract fun onProgress(@NonNull insets: @NonNull WindowInsetsCompat, @NonNull runningAnimations: @NonNull List<WindowInsetsAnimationCompat>): @NonNull WindowInsetsCompat
Called when the insets change as part of running an animation.
Link copied to clipboard
@NonNull
open fun onStart(@NonNull animation: @NonNull WindowInsetsAnimationCompat, @NonNull bounds: @NonNull WindowInsetsAnimationCompat.BoundsCompat): @NonNull WindowInsetsAnimationCompat.BoundsCompat
Called when an insets animation gets started.